package com.yihong.userserver.repository;

import com.yihong.userserver.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

/**
 * @ClassName UserRepository
 * @Description
 * @Author 孟志浩
 * @Date 2019/3/18 10:35
 **/
@Repository
public interface UserRepository extends JpaRepository<User,Long> {

    User findUserByLoginNameAndPasswordAndIsValidEquals(@Param("loginName") String loginName, @Param("password") String password,@Param("isValid")int isValid);

}
